import request from '@/utils/request'

// 查询漏洞检测列表
export function listVulnerabilityDetection(query) {
  return request({
    url: '/vulnerability/VulnerabilityDetection/list',
    method: 'get',
    params: query
  })
}

// 查询漏洞检测详细
export function getVulnerabilityDetection(id) {
  return request({
    url: '/vulnerability/VulnerabilityDetection/' + id,
    method: 'get'
  })
}

// 新增漏洞检测
export function addVulnerabilityDetection(data) {
  return request({
    url: '/vulnerability/VulnerabilityDetection',
    method: 'post',
    data: data
  })
}

// 修改漏洞检测
export function updateVulnerabilityDetection(data) {
  return request({
    url: '/vulnerability/VulnerabilityDetection',
    method: 'put',
    data: data
  })
}

// 删除漏洞检测
export function delVulnerabilityDetection(id) {
  return request({
    url: '/vulnerability/VulnerabilityDetection/' + id,
    method: 'delete'
  })
}
